<?php
/**
 * Created by PhpStorm.
 * User: Apache
 * Date: 2019/12/5
 * Time: 9:40
 */

namespace app\api\model;
use app\api\controller\common\ModelBase;;

class CompanyPublic extends ModelBase
{
    public function _initialize()
    {
        parent::_initialize();
        $this->name = 'company_public';
    }
    
        /**
     * 所有列表
     * @param array $where
     * @param string $order
     * @param int $current
     * @param int $pagesize
     * @return false|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function listAll($where = [],$order = 'id desc',$current = 0,$pagesize = 10){
        $r = $this->where($where)
                  ->order($order)
                  ->select();
        return $r;
    }

}